<ion-view view-title="商品详情" class="productdetail">
	<ion-nav-buttons side="right">
		<button class="button button-clear" on-tap="show_apply()"><i class="icon ion-android-share-alt"></i></button>
	</ion-nav-buttons>

	<ion-content class="has-footer">
		<!--描述：商品图片轮播-->
		<ion-slide-box id="product-top1" delegate-handle="advs-handle" slide-interval="5000" show-pager="true" ng-show="detail.title_images!=undefined">
			<ion-slide ng-repeat="img in detail.title_images">
				<div class="tu">
					<img src="{{img.image}}" width="100%" height="100%">
				</div>
			</ion-slide>
		</ion-slide-box>

		<div class="font-large-my font-gray-my text-center padding" ng-show="detail.name==undefined">
			<i class="icon ion-sad-outline font-1rem-my"></i> <span ng-bind-html="msg"></span>
		</div>

		<div class="list list-borderless" id="product-top2" style="margin-bottom:10px;" ng-show="detail.name!=undefined">
			<!--<ion-scroll direction="y" ng-style="myObj" >-->
			<li class="item item-text-wrap padding-5">
				<span class="assertive" ng-show="detail.flag_name">({{detail.flag_name}}) </span> {{detail.name}}
				<!--<p class="font-small-my font-gray-my">商品货号：{{detail.bn}}</p>-->
				
			</li>
			<li class="item tem-text-wrap padding-5" style="background: #FF681F;color: white;">
				<!--<span  class="font-large-my" style="background: #FB934A;color: white;">-->
					
					<!--<div>-->
						<i class=" ion-ios-alarm-outline" style="font-size: 1.5rem;padding: 5px;"></i>
						<span style="vertical-align: super;font-size: 0.6rem;" >秒杀</span>
					<span class="right-zhang"  style="padding-top: 0.35rem;font-size: 0.6rem;">{{act_time_name}}:{{detail.formate_time}}</span>
					<!--</div>-->
					
				<!--</span>-->
			</li>
			<li class="item padding-5 font-large-my">
				<span class="assertive margin-right-10-my" ng-show="!is_price"><b>{{detail.min_price | currency:'￥'}} --{{detail.max_price | currency:'￥'}}</b></span>
				<span class="assertive margin-right-10-my" ng-show="is_price"><b> {{detail.price|currency:'￥'}}</b></span>
				<span class="assertive margin-right-10-my" ng-show="detail.price==undefined&&is_price"><b> {{detail.mktprice|currency:'￥'}}</b></span>
				<span class="font-gray-my font-small-my"  >中奖价{{detail.win_price | currency:'￥'}}</span>
				<span class="right-zhang">已售出{{detail.count?detail.count:0}}件</span>
				<p class="font-small-my">规格信息:{{detail.spec_info}}</p>
				<p class="font-small-my" ng-repeat="spec in detail.specification" >
					<span class="left-zhang">{{spec.name}}：</span>
					<span class="bian_gray royal left-zhang item-input-wrapper margin-right-10-my" ng-class="{'assertive':num.checked,'royal':!num.checked}" style="padding: 1px 3px;margin-bottom: 5px;" on-tap="choose_spec(spec.id,num.value)" ng-repeat="num in spec.detail">{{num.name}}</span>
					<div class="clear_zhang"></div>
				</p>
			</li>
			<li class="item padding-0" style="clear: both;" ng-show="detail.flag_name!='转让'&&detail.flag_name!='租赁'">
				<div class="row font-middle-my" style="line-height: 32px;">
					<div class="col text-center">
						<div class="row padding-0">
							<div class="col col-20 padding-0 stable-bg font-gray-my font-1rem-my" on-tap="goods_reduce()">
								-
							</div>
							<div class="col padding-0">
								<input type="number" class="left-zhang text-center" style="width:100%;border: 1px solid #dedede;" ng-model="input.goods_num" />
							</div>
							<div class="col col-20 padding-0 bg-DDD font-gray-my font-1rem-my" on-tap="goods_add()">
								+
							</div>
						</div>
					</div>
					<div class="col">
						库存：<span class="assertive">{{detail.store}}</span>
						<span class="right-zhang" >最大可购买:&nbsp;<span class="assertive">{{detail.max_count}}</span></span>
					</div>
				</div>
				<div class="row padding-0 text-center font-middle-my">
					<div class="col">
						<span class="right-zhang" ng-if="detail.min_buy!=null&&detail.min_buy>1">基数{{detail.min_buy}}</span>
					</div>
					<div class="col"  ng-show="detail.click_count > 0">
						浏览：<span class="assertive">{{detail.click_count}}</span>
					</div>
					<div class="col" ng-show="detail.month_sell_count > 0">
						月销量：<span class="assertive">{{detail.month_sell_count}}</span>
					</div>
				</div>
				
			 </li>
			 <li class="item padding-0" style="clear: both;padding-left: 16px;" ng-show="detail.flag_name=='转让'||detail.flag_name=='租赁'">
			 	<span class="font-middle-my" style="text-align: center;">转让商品为特殊商品，请与店铺线下联系 </span>
			 </li>
			 <div class="item" style="padding-top: 1px;" id="product-top7">
			 	<li class="item item-icon-right padding-10 margin-top-10-my" on-tap="onshow_productInfo(0,detail.goods_id)" style="border-top: 1px solid #DDDDDD;">
			 	 活动规则
			 	 <i class="icon ion-chevron-right font-large-my placeholder-icon"></i>
			 </li>
				<li class="item item-icon-right padding-10 margin-top-10-my" on-tap="onshow_productInfo(1,detail.goods_id)" style="border-top: 1px solid #DDDDDD;">
					图文详情
					<i class="icon ion-chevron-right font-large-my placeholder-icon"></i>
				</li>
			</div>

		</div>


		<div class="list list-borderless storeInfo" style="box-shadow: 4px 4px 20px #333;" ng-show="detail.store_name!=undefined" id="product-top5">
			<li class="item padding-5">
				<img src="{{detail.image_place1.s_url}}" width="100%" />
				<div class="left-zhang padding-left-5-my level" style="padding-top: 0.5rem;">
					<div class="storeName">{{detail.store_name}}</div>
					<div>
						<div class="left-zhang font-large-my font-gray-my">{{detail.store_kind}}</div>
						<div class="{{style}}"></div>
					</div>
				</div>
				<div class="right-zhang">
					<p ng-repeat="store_info in detail.store_info">
						<span class="pointName">{{store_info.name}}</span> <span class="point">{{store_info.avg_point}}</span>
					</p>
				</div>
			</li>
		</div>
	</ion-content>

	<!--底部购物车导航-->
	<div class="bar bar-footer padding-0" ng-show="detail.name!=undefined" id="product-top6">
		<div ng-include="'templates/order/goods/seckill_foot.html'" style="width: 100%;"></div>
	</div>

	<!--弹窗，通过点击控制，为了避免弹窗显示时，底部内容也能滚动，必须将这些弹窗放在ion-content外-->
	<div ng-hide="isHide" class="kuang_zhang padding">
		<div ng-include="'templates/myrecord/keyshare.html'"></div>
	</div>

	<!--透明背景，当弹窗出现时，该背景也跟着出现，通过点击控制-->
	<div ng-hide="isHide" class="touming_zhang" on-tap="hide_apply()"></div>
	
</ion-view>